#pragma once

#include <stdio.h>
#include "base/allocation.h"

namespace l8
{

// dumps various contents to the given stream
class Dumper : AllStatic
{
public:
    // Print the bytes in the interval [begin, end) into f.
    static void Dump(FILE* f, byte* begin, byte* end);

    static int Decode(FILE* f, byte* begin, byte* end);

private:
    DISALLOW_IMPLICIT_CONSTRUCTORS(Dumper);
};

} // namespace l8
